package com.scedu.springcloud.springcloud.service;

import com.scedu.springcloud.springcloud.entity.CommonResult;
import com.scedu.springcloud.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

@Component
public class OrderFeignFallbackService implements OrderFeignService{
    @Override
    public CommonResult getPaymentById(Long id) {
        return new CommonResult(500,"出错了",new Payment(1L,"出错了"));
    }

    @Override
    public CommonResult create(Payment payment) {
        return new CommonResult(500,"出错了",new Payment(1L,"出错了"));
    }

    @Override
    public String timeout() {
        return "timeout";
    }
}
